import React from "react";
import styled from "styled-components";

const Container = styled.div`
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #f0f0f0;
  font-family: Arial, sans-serif;
`;

const GradientBox = styled.div`
  background: linear-gradient(135deg, #8bbde0, #51c0f1);
  border-radius: 10px;
  padding: 30px;
  width: 80%;
  max-width: 600px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
`;

const Title = styled.h1`
  font-size: 48px;
  font-weight: bold;
  color: white;
  text-align: center;
  margin-bottom: 20px;
`;

const Message = styled.p`  color: #333;
  font-size: 20px;
  line-height: 1.5;
  text-align: center;
  margin-bottom: 30px;`;

const FooterNote = styled.small`  color: #666;
  text-align: center;`;

const NoPermission = () => {
  return (
    <Container>
      <GradientBox>
        <Title>403</Title>
        <Message>很遗憾，您当前无权访问此页面。</Message>
        <FooterNote>如有疑问，请联系管理员或检查您的权限设置。</FooterNote>
      </GradientBox>
    </Container>
  );
};

export default NoPermission;
